<#include "/includes/vars.inc">  
<@pp.dropOutputFile />

<#list entities.entity as entity>
		<#assign entityName = entity.@name>
		<#assign fileName = "${testJavaDir}${packageDir}/service/"+entityName?cap_first+"ServiceTest.java">
		<#if !pp.outputFileExists(fileName)>
            <@pp.changeOutputFile name="${fileName}" />
		
package ${project.@rootPackage}.service;

import ${project.@rootPackage}.domain.${entityName};
import ${project.@rootPackage}.util.${entityName}DataGenerator;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Integration Test for entity ${entityName}
 * <#if project.@author[0]??>@author ${project.@author}</#if>
 */
//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration("/spring-test.xml")
@Component
public class ${entityName}ServiceTest {

    @Autowired
    private ${entityName}Service service;
    @Autowired
    private ${entityName}DataGenerator data;   

   
}

    </#if>
</#list>